package ysq.xyg.base.util;

/**
 * @author yu sheng qiang
 * @create 2017-03-22 16:43
 **/
public final class BaseConstant {
    //常用状态
    public static String CODE_AUTOLOGIN_Y="1";//自动登录
    public static String CODE_AUTOLOGIN_N="2";//非自动登录
    public static String COOKIE_LOGINNAME="COOKIE_LOGINNAME";//保存到COOKIE中登录名信息
    public static String COOKIE_PASSWORD="COOKIE_PASSWORD";//保存到COOKIE中登录密码信息
    public static String SESSION_CURRENT_USER="SESSION_CURRENT_USER";//保存到Session中信息
    /**
     * 时间格式
     */
    /** 年格式 */
    public final static String DATE_YEAR = "yyyy";
    /** 月格式 */
    public final static String DATE_MONTH = "MM";
    /** 日格式 */
    public final static String DATE_DAY = "dd";
    /** 日期格式 */
    public final static String DATE_PATTERN = "yyyy-MM-dd";

    /** 年月格式 */
    public final static String DATE_YEARMONTH = "yyyy-MM";

    /** 时间格式 */
    public final static String TIME_PATTERN = "HH:mm:ss";
    /** 时格式 */
    public final static String DATE_HOUR = "HH";
    /** 时间格式 */
    public final static String HM_PATTERN = "HH:mm";

    /** 日期格式1 */
    public final static String DATE_TIME_PATTERN_1 = "yyyyMMddHHmmss";
    /** 日期格式1 */
    public final static String DATE_TIME_PATTERN_2 = "yyyyMMddHHmmssSSSS";

    /** 日期时间格式 */
    public final static String DATE_TIME_PATTERN = DATE_PATTERN + " " + TIME_PATTERN;

    //操作状态
    public static int SUCCESS=0;
    public static int FAIL=1;
    public static String DO_SUCCESS="操作成功！";
    public static String DO_FAIL="操作失败！";
    public static String DO_FAIL_FILE="文件格式不匹配！";

    //分页默认值
    public static final int PAGE_NUM = 1;
    public static final int PAGE_SIZE = 15;

    //附件类型:1、图片类型，2、文档类型,3、execl类型
    public static String FILE_TYPE_IMAGE="1";
    public static String FILE_TYPE_DOC="2";
    public static String FILE_TYPE_EXECL="3";
    //菜单最小值
    public static String MENU_CODE_MIN="10";
    /**
     * 字典码内容
     */
    //有效状态:1、有效，2、无效
    public static final String BASE_STATUS = "base_status";
    public static final String BASE_STATUS_NORMAL="1";
    public static final String BASE_STATUS_DISABLE="2";

    //删除标识：1、正常，2、已删除
    public static final String BASE_REMOVE_TAG = "base_remove_tag";
    public static final String BASE_REMOVE_TAG_NORMAL="1";
    public static final String BASE_REMOVE_TAG_DELETE="2";

    //操作类别:1、其它，2、后台用户，3、手机端用户
    public static final String SYS_OPERATOR_TYPE = "sys_operator_type";
    public static final String SYS_OPERATOR_TYPE_OTHER="1";
    public static final String SYS_OPERATOR_TYPE_PC="2";
    public static final String SYS_OPERATOR_TYPE_PHONE="3";


    //操作状态：1、操作成功，2、操作失败
    public static final String SYS_OPERATOR_STATUS = "operator_status";
    public static final String SYS_OPERATOR_STATUS_SUCCESS="1";
    public static final String SYS_OPERATOR_STATUS_FAIL="2";

    //业务操作类型：1、新增，2、修改，3、删除，4、查询，5、授权，6、导出，7、导入，8、强退，9、生成代码，10、清空，11，其它
    public static final String SYS_BUSINESS_TYPE = "sys_business_type";
    public static final String SYS_BUSINESS_TYPE_INSERT="1";
    public static final String SYS_BUSINESS_TYPE_UPDATE="2";
    public static final String SYS_BUSINESS_TYPE_DELETE="3";
    public static final String SYS_BUSINESS_TYPE_GET="4";
    public static final String SYS_BUSINESS_TYPE_GRANT="5";
    public static final String SYS_BUSINESS_TYPE_EXPORT="6";
    public static final String SYS_BUSINESS_TYPE_IMPORT="7";
    public static final String SYS_BUSINESS_TYPE_FORCE="8";
    public static final String SYS_BUSINESS_TYPE_GENCODE="9";
    public static final String SYS_BUSINESS_TYPE_CLEAN="10";
    public static final String SYS_BUSINESS_TYPE_OTHER="11";

    //附件类型：1、项目下保存，2、硬盘下保存，3、千牛云保存
    public static final String SYS_FILE_SAVE_TYPE = "sys_file_save_type";
    public static final String SYS_FILE_SAVE_TYPE_LOCALHOST="1";
    public static final String SYS_FILE_SAVE_TYPE_DISK="2";
    public static final String SYS_FILE_SAVE_TYPE_QLY="3";

    //菜单类型：1、目录，2、菜单，3、按钮
    public static final String SYS_MENU_TYPE = "sys_menu_type";
    public static final String SYS_MENU_TYPE_DIC="1";
    public static final String SYS_MENU_TYPE_MENU="2";
    public static final String SYS_MENU_TYPE_BTN="3";

    //菜单级别:1、一级，2、二级，3、三级
    public static final String SYS_MENU_GRADE = "sys_menu_grade";
    public static final String SYS_MENU_GRADE_ONE="1";
    public static final String SYS_MENU_GRADE_TWO="2";
    public static final String SYS_MENU_GRADE_THREE="3";
}
